<div class="container">
  <h1>form_file_select()</h1>
  <p class="signature">function form_file_select(string $name, ?array $attributes = null): string</p>
  <h2>Description</h2>
  <div class="description">
    <p>Generates an HTML file input element.</p>
  </div>
  <h2>Parameters</h2>
  <table>
    <thead>
      <tr>
        <th>Parameter</th>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>$name</td>
        <td>string</td>
        <td>The name attribute for the file input.</td>
      </tr>
      <tr>
        <td>$attributes</td>
        <td>array|null</td>
        <td>(optional) An array of HTML attributes for the file input. Default is null.</td>
      </tr>
    </tbody>
  </table>
  <h2>Return Value</h2>
  <table>
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>string</td>
        <td>The generated HTML for the file input element.</td>
      </tr>
    </tbody>
  </table>
  <h2>Example #1</h2>
  <p>The code sample below demonstrates the basic usage of the <code>form_file_select</code> function.</p>
  <pre>
  $name = 'user_file';
  echo form_file_select($name);
  // Output:
  // &lt;input type="file" name="user_file"&gt;
  </pre>
  <h2>Example #2</h2>
  <p>The code sample below demonstrates a more complex usage of the <code>form_file_select</code> function with additional attributes.</p>
  <pre>
  $name = 'user_file';
  $attributes = [
      'id' => 'user-file-input',
      'class' => 'form-control-file',
      'accept' => '.pdf,.doc,.docx',
      'multiple' => true
  ];
  echo form_file_select($name, $attributes);
  // Output:
  // &lt;input type="file" name="user_file" id="user-file-input" class="form-control-file" accept=".pdf,.doc,.docx" multiple&gt;
  </pre>
  <h2>Notes</h2>
  <ul>
    <li>The function automatically sets the <code>type</code> attribute to 'file'.</li>
    <li>This function internally calls the <code>form_input()</code> function to generate the HTML.</li>
    <li>Any attributes passed in the <code>$attributes</code> array will be added to the input element, allowing for customization of the file input's behavior and appearance.</li>
    <li>The <code>multiple</code> attribute can be added to allow selection of multiple files.</li>
    <li>The <code>accept</code> attribute can be used to specify which file types are allowed.</li>
  </ul>
</div>